#ifndef GLOBAL_H
#define GLOBAL_H

#define VS_SUCCESS            0             /* General purpose error code */
#define VS_ERR              (-1)
#define VS_ERROR            (-1)            /* Operator error */
#define VS_FAILURE          (-2)            /* System-level error */
#define VS_ESCAPE           (-3)            /* Operator quit transaction */
#define VS_TIMEOUT          (-4)            /* Time out */
#define VS_CARRIER          (-5)            /* Modem Lost Carrier */
#define VS_EOB              (-6)            /* End of Batch */
#define VS_ABORT            (-99)           /* Operation Aborted (obsolete) */
#define ERROR_OCCURRED       -1


typedef char VS_BOOL;
#define VS_FALSE           ((VS_BOOL) 0)
#define VS_TRUE            ((VS_BOOL) 1)
#define NULL_CH            ((char) 0)

#define NO_CLOCK_HANDLE			-1,
#define CHECK_TIMEOUT(time)         (((read_ticks())<time)?1:0)

#define OMNI_3300_ID    "Q7"
#define OMNI_3350_ID    "Q3"
#define OMNI_3600_ID    "Q8"
#define OMNI_3750_ID    "Q5"
#define OMNI_5150_ID    "QA"

#endif